package com.bwf.lgqingdan.entity;

import java.util.List;

/**
 * Created by Administrator on 2016/11/18.
 */

public class ArticlesBean {
    private int id;
    private String title;
    private String subtitle;
    private String featuredImageUrl;
    private String excerpt;
    private boolean isLiked;
    private int thingCount;
    private int likeCount;
    private int hitCount;
    private int commentCount;
    private String publishedAt;
    private String publishedAtDiffForHumans;
    /**
     * self : http://api.eqingdan.com/v1/articles/306
     * html : http://www.eqingdan.com/app/articles/306
     * share : http://www.eqingdan.com/mobile/articles/306
     * like : http://api.eqingdan.com/v1/article/306/actions/like
     * cancelLike : http://api.eqingdan.com/v1/article/306/actions/cancel-like
     */

    private LinksBean links;
    /**
     * id : 5
     * username : list
     * nickname : 李斯特
     * tagline : 从一个枕头到全世界
     * avatarUrl : http://img01.eqingdan.com/096c37d8-0796-11e5-908c-00163e002745.jpeg?imageView2/1/w/120/h/120/q/75
     */

    private AuthorBean author;
    /**
     * name : 家居
     * slug : housing
     */

    private List<CategoriesBean> categories;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getFeaturedImageUrl() {
        return featuredImageUrl;
    }

    public void setFeaturedImageUrl(String featuredImageUrl) {
        this.featuredImageUrl = featuredImageUrl;
    }

    public String getExcerpt() {
        return excerpt;
    }

    public void setExcerpt(String excerpt) {
        this.excerpt = excerpt;
    }

    public boolean isIsLiked() {
        return isLiked;
    }

    public void setIsLiked(boolean isLiked) {
        this.isLiked = isLiked;
    }

    public int getThingCount() {
        return thingCount;
    }

    public void setThingCount(int thingCount) {
        this.thingCount = thingCount;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }

    public int getHitCount() {
        return hitCount;
    }

    public void setHitCount(int hitCount) {
        this.hitCount = hitCount;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public String getPublishedAt() {
        return publishedAt;
    }

    public void setPublishedAt(String publishedAt) {
        this.publishedAt = publishedAt;
    }

    public String getPublishedAtDiffForHumans() {
        return publishedAtDiffForHumans;
    }

    public void setPublishedAtDiffForHumans(String publishedAtDiffForHumans) {
        this.publishedAtDiffForHumans = publishedAtDiffForHumans;
    }

    public LinksBean getLinks() {
        return links;
    }

    public void setLinks(LinksBean links) {
        this.links = links;
    }

    public AuthorBean getAuthor() {
        return author;
    }

    public void setAuthor(AuthorBean author) {
        this.author = author;
    }

    public List<CategoriesBean> getCategories() {
        return categories;
    }

    public void setCategories(List<CategoriesBean> categories) {
        this.categories = categories;
    }

    public static class LinksBean {
        private String self;
        private String html;
        private String share;
        private String like;
        private String cancelLike;

        public String getSelf() {
            return self;
        }

        public void setSelf(String self) {
            this.self = self;
        }

        public String getHtml() {
            return html;
        }

        public void setHtml(String html) {
            this.html = html;
        }

        public String getShare() {
            return share;
        }

        public void setShare(String share) {
            this.share = share;
        }

        public String getLike() {
            return like;
        }

        public void setLike(String like) {
            this.like = like;
        }

        public String getCancelLike() {
            return cancelLike;
        }

        public void setCancelLike(String cancelLike) {
            this.cancelLike = cancelLike;
        }
    }

    public static class AuthorBean {
        private int id;
        private String username;
        private String nickname;
        private String tagline;
        private String avatarUrl;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getTagline() {
            return tagline;
        }

        public void setTagline(String tagline) {
            this.tagline = tagline;
        }

        public String getAvatarUrl() {
            return avatarUrl;
        }

        public void setAvatarUrl(String avatarUrl) {
            this.avatarUrl = avatarUrl;
        }
    }

    public static class CategoriesBean {
        private String name;
        private String slug;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSlug() {
            return slug;
        }

        public void setSlug(String slug) {
            this.slug = slug;
        }
    }
}
